var tmpArr;
var QueryString;
var URL = document.location.toString();

URL = decodeURI(URL);
if (URL.lastIndexOf("?") != -1) {

	QueryString = URL.substring(URL.lastIndexOf("?") + 1, URL.length);

	tmpArr = new Array();

	tmpArr = QueryString.split("&");
}

window.onload=function(){
	
	var nicheng = document.getElementById("person_name");
	
	for (var i = 0; i < tmpArr.length; i++) {
		
		var p = tmpArr[i].substring(0, tmpArr[i].indexOf("="));
		
		if (p == "person_name") {
			var value = tmpArr[i].substring(tmpArr[i].indexOf("=") + 1, tmpArr[i].length);
			nicheng.textContent=value;
		}
		
	}
	var  bangdingshouji = document.getElementById("phone");
	
	for (var i = 0; i < tmpArr.length; i++) {
		
		var p = tmpArr[i].substring(0, tmpArr[i].indexOf("="));
		
		if (p == "phone") {
			var value = tmpArr[i].substring(tmpArr[i].indexOf("=") + 1, tmpArr[i].length);
			bangdingshouji.textContent=value;
		}
		
	}
	var mySchool = document.getElementById("school");
	
	for (var i = 0; i < tmpArr.length; i++) {
		
		var p = tmpArr[i].substring(0, tmpArr[i].indexOf("="));
		
		if (p == "school") {
			var value = tmpArr[i].substring(tmpArr[i].indexOf("=") + 1, tmpArr[i].length);
			mySchool.textContent=value;
		}
		
	}
	var ruxuenianfen = document.getElementById("inSchoolDate");
	
	for (var i = 0; i < tmpArr.length; i++) {
		
		var p = tmpArr[i].substring(0, tmpArr[i].indexOf("="));
		
		if (p == "inSchoolDate") {
			var value = tmpArr[i].substring(tmpArr[i].indexOf("=") + 1, tmpArr[i].length);
			ruxuenianfen.textContent=value;
		}
		
	}
	
	
}
